import util from '../libs/util';
var qs = require('qs');

//新增代理协议
export function creatAgreement(value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/agency_agreement/create',
        method: 'post',
        data:qs.stringify(value)
    })
}

//获取代理协议列表
export function getListAgreement(value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/agency_agreement/get_list',
        method: 'post',
        data:qs.stringify(value)
    })
}

//获取代理协议详情
export function getDetailAgreement(value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/agency_agreement/get_detail',
        method: 'post',
        data:qs.stringify(value)
    })
}

//更新代理协议
export function updateAgreement(value) {
    return util.ajax({
        url: 'http://biz.kuaibao365.com/agency_agreement/update',
        method: 'post',
        data:qs.stringify(value)
    })
}


//删除代理协议
export function delAgreement(value) {
    return util.ajax({
        url: '/agency_agreement/del',
        method: 'post',
        data:qs.stringify(value)
    })
}